package com.spring.factorybean_demo;

import com.spring.demo01.MyService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBeanConfiguration {

	@Bean
	public MyService myService(){
		return new MyService("helloworld");
	}

	@Bean
	public MyFactoryBean myFactoryBean(){
		return new MyFactoryBean();
	}
}
